/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 掌萌人
 */

// 登录
export const getLogin = "https://api.528fh.com/api/Login/LoginByMobile"
// 获取账号信息
export const getSysSendTaskAccount = "https://api.528fh.com/api/Member/GetSysSendTaskAccount"
// 加入排队
export const getNewsSystemSendTask = "https://api.528fh.com/api/Task/NewsSystemSendTask"
// 获取任务
export const getQueryTaskReceivingStatus = "https://api.528fh.com/api/Task/QueryTaskReceivingStatus"

export const apikey = 'wx64aace65r43c124e1a1';
export const clientId = 'BFR817FD2E8651BeFC4C102F607EA1CD';
export const clientSecret = 'AFB5D05333C0D6EE9E9B2796333AB2EAC7';

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: param.headers || {},
        dataType: param.dataType || 'json',
        returnAll: false,
        data: {
            values: param.data
        }
    }, fun)
}
